const setLocal = (key: string, value: string) => {
  localStorage.setItem(key, value)
}

const getLocal = (key: string) => {
  return localStorage.getItem(key)
}

const removeLocal = (key: string) => {
  return localStorage.removeItem(key)
}

const setSession = (key: string, value: string) => {
  sessionStorage.setItem(key, value)
}
const getSession = (key: string) => {
  return sessionStorage.getItem(key)
}

const removeSession = (key: string) => {
  return sessionStorage.removeItem(key)
}

export { setLocal, getLocal, removeLocal, setSession, getSession, removeSession }
